﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Shop
{
    [Serializable]
    class Tovar : iTovar 
    {
        public Tovar() // конструктор
        {
            
        }
        protected string _name;
        protected double _cost;
        protected DateTime _dataOfCreate;
        protected DateTime _period;
        protected string _placeOfCreate;
        protected string _description;
        protected int _id_tovar;
        protected bool _iWorst;
        protected bool _isSold;
        protected double _procent;
        protected double _costOfRealization;
        public double costOfRealization
        {
            get { return _costOfRealization; }
            set { _costOfRealization = value; }
        }
        public double procent
        {
            get { return _procent; }
            set { _procent = value; }
        }
        public string name
        {
            get { return _name; }
            set { _name = value; }
        }
        public double cost
        {
            get { return _cost; }
            set { _cost = value; }
        }
        public DateTime dateOfCreate
        {
            get { return _dataOfCreate; }
            set { _dataOfCreate = value; }
        }
        public DateTime period
        {
            get { return _period; }
            set { _period = value; }
        }
        public string placeOfCreate
        {
            get { return _placeOfCreate; }
            set { _placeOfCreate = value; }
        }
        public string descrioption
        {
            get { return _description; }
            set { _description = value; }
        }
        public int id_tovar
        {
            get { return _id_tovar; }
            set { _id_tovar = value; }
        }
        public bool iWorst
        {
            get { return _iWorst; }
        }
        public bool isSold
        {
            get { return _isSold; }
            set { _isSold = value; }
        }
        public void Worst()
        {
            _iWorst = true;
        }
    }
}
